package com.photographysharing.service;

import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;

public interface FileService {
    /**
     * 上传文件
     * @param file
     * @return
     * @throws IOException
     */
    public String upload(MultipartFile file) throws IOException;

    /**
     * 获取uuid 对应的文件地址
     * @param uuid
     * @return
     */
    public String[] getFileAddress(String uuid);

}
